package models

import "time"

type BorrowRecord struct {
	ID         uint       `gorm:"primaryKey" json:"id"`
	UserID     uint       `gorm:"type:int unsigned" json:"user_id"` // 外键类型对齐
	BookID     uint       `gorm:"type:int unsigned" json:"book_id"` // 外键类型对齐
	BorrowDate time.Time  `json:"borrow_date"`
	ReturnDate *time.Time `json:"return_date"`
	Status     string     `json:"status"`
}
